package com.linln.admin.sync.repository;

import com.linln.admin.sync.domain.FlowNacos;
import com.linln.common.config.BaseRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author taofucheng
 * @date 2021/11/26
 */
public interface FlowNacosRepository extends BaseRepository<FlowNacos, Long> , JpaSpecificationExecutor<FlowNacos> {
    @Query("from #{#entityName} where version_id=:versionId and status=1")
    List<FlowNacos> findByVersion_id(@Param("versionId") Long versionId);
}